const routes = [
    {
      path: '/index',
      name: 'index',
      component: () => import('../views/Index.vue'),
      children:[
        {
          path:'/index/home',
          name:'home',
          component:() => import('../views/Index/SHome.vue'),
        },
        {
          path:'/index/bao',
          name:'bao',
          component:()=>import('../views/Index/Bao.vue'),
        },
        {
          path:'/index/gou',
          name:'gou',
          component:()=>import('../views/Index/Gou.vue'),
        },
        {
          path:'/index/ge',
          name:'ge',
          component:()=>import('../views/Index/Ge.vue'),
        },
      ]
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/About.vue'),
    },
    {
      path:'/',
      redirect:'/index/home'
    },
    {
      path:'*',
      component:()=>import('../views/NotFound.vue'),
    },
]

export default routes;